package com.example.analysis.entity;

import java.io.Serializable;

/**
 * detail_list
 * @author 
 */
public class DetailList implements Serializable {
    private String coursePlatform;

    private String subId;

    private String majorId;

    private static final long serialVersionUID = 1L;

    public String getCoursePlatform() {
        return coursePlatform;
    }

    public void setCoursePlatform(String coursePlatform) {
        this.coursePlatform = coursePlatform;
    }

    public String getSubId() {
        return subId;
    }

    public void setSubId(String subId) {
        this.subId = subId;
    }

    public String getMajorId() {
        return majorId;
    }

    public void setMajorId(String majorId) {
        this.majorId = majorId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DetailList other = (DetailList) that;
        return (this.getCoursePlatform() == null ? other.getCoursePlatform() == null : this.getCoursePlatform().equals(other.getCoursePlatform()))
            && (this.getSubId() == null ? other.getSubId() == null : this.getSubId().equals(other.getSubId()))
            && (this.getMajorId() == null ? other.getMajorId() == null : this.getMajorId().equals(other.getMajorId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCoursePlatform() == null) ? 0 : getCoursePlatform().hashCode());
        result = prime * result + ((getSubId() == null) ? 0 : getSubId().hashCode());
        result = prime * result + ((getMajorId() == null) ? 0 : getMajorId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", coursePlatform=").append(coursePlatform);
        sb.append(", subId=").append(subId);
        sb.append(", majorId=").append(majorId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}